//
//  UIButtonExt.m
//  MedicalProject
//
//  Created by lifayu on 16/12/25.
//  Copyright © 2016年 贵阳飞云科技有限公司. All rights reserved.
//

#import "UIButtonExt.h"

@implementation UIButton(UIButtonExt)

@dynamic normalBgColor;
@dynamic disableBgColor;
@dynamic highlightedBgColor;
@dynamic selectedBgColor;

- (void)setNormalBgColor:(UIColor *)normalBgColor
{
    [self setBackgroundImage:[UIImage fly_imageWithColor:normalBgColor] forState:UIControlStateNormal];
}

- (void)setHighlightedBgColor:(UIColor *)highlightedBgColor
{
    [self setBackgroundImage:[UIImage fly_imageWithColor:highlightedBgColor] forState:UIControlStateHighlighted];
}

- (void)setSelectedBgColor:(UIColor *)selectedBgColor
{
    [self setBackgroundImage:[UIImage fly_imageWithColor:selectedBgColor] forState:UIControlStateSelected];
}

- (void)setDisableBgColor:(UIColor *)disableBgColor
{
    [self setBackgroundImage:[UIImage fly_imageWithColor:disableBgColor] forState:UIControlStateDisabled];
}

@end
